package com.wu.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Reultvo {
    private boolean success;

    private int code;

    private String msg;

    private Object data;

    public static Reultvo  success(){
        return new Reultvo();
    }
    public static Reultvo  success(Object data){
        return new Reultvo(true,200,"   success   ",data);
    }

    public static Reultvo fail(int code, String msg){
        return new  Reultvo(false,code,msg,null);
    }
}
